@function px($n) {
  @return $n / 75 + rem;
}

*, *:before, *:after {
  box-sizing: border-box;
  vertical-align: top;
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead {
  margin: 0;
  padding: 0;
  background: none repeat scroll 0 0 transparent;
  outline: 0 none;
  border: 0;
}

html {
  height: 100%;
  font-size: 14px;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #fff;
  font-size: 12px;
  font-size: 1.2rem;
  font-family: Arial, 'Microsoft YaHei', Helvetica, sans-serif;
  text-align: left;
  -webkit-user-select: none;
  position: relative;
}

h1, h2, h3, h4, h5, h6, b {
  font-weight: 400;
}

ol, ul, li {
  list-style: none;
}

a, img {
  -webkit-touch-callout: none;
  vertical-align: middle;
}

a, a:active, a:hover, a:focus, a:visited {
  text-decoration: none;
}

a, input, textarea {
  color: #000;
  text-decoration: none;
  outline: 0;
}

a, button, input {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 1.去除android a/button/input标签被点击时产生的边框 2.去除ios a标签被点击时产生的半透明灰色背景 */
p {
  display: table;
  width: 100%;
  background-image: url(about:blank);
  background-color: transparent;
  word-break: break-all;
}

.msg-desc p {
  display: block;
}

em {
  font-style: italic;
}

::-moz-selection {
  background: #0065AD;
  color: #fff;
}

::selection {
  background: #0065AD;
  color: #fff;
}

textarea, input[type="password"], input[type="text"] {
  resize: none;
  outline: 0;
  -webkit-appearance: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  background-color: #fff;
  -webkit-appearance: none;
}

/*ios safari上的圆角问题*/
input:focus, textarea:focus {
  border: 2px solid #ff8b24;
  color: #000;
  font-size: 2.4rem;
}

.clearfix:after {
  display: block;
  clear: both;
  content: "";
  visibility: hidden;
  height: 0;
}

/*启用HTML5标签*/
header, section, footer, aside, nav, article, figure {
  display: block;
  margin: 0;
}

#debug-info {
  position: absolute;
  top: 0;
  width: 100%;
}

#debug-info div {
  font-size: px(40);
}

.layer {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.layer-bg {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.53);
}

.layer .container {
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 50%;
  right: 0;
  width:px(755);
  height:px(780);
  margin-left: - px(377);
  margin-top: - px(390);
  transform: scale(0.1 0.1);
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.layer .container .info-list {
  margin:0 auto;
  padding: px(160) px(180) 0;
  background-repeat:no-repeat;
  background-size: 100% 100%;
  -webkit-background-size: 100% 100%;
  -moz-background-size: 100% 100%;
  -ms-background-size: 100% 100%;
  -o-background-size: 100% 100%;
  dt {
    color: #621905;
    font-size: px(50);
    text-align: center;
  }
  .money {
    line-height: px(60);
    color: #621905;
    font-size: px(40);
  }
  .money .n-value {
    color: #ce2525;
  }
  .money .level-value {
  }
  .info {
    margin-top: px(30);
    line-height: px(40);
    font-size: px(24);
    color: #ce2525;
  }
}
.layer .container .fail{
  width:px(755);
  height:px(663);
  background-image: url('../images/layer-fail-bg.png');
}
.layer .container .success{
  width:px(755);
  height:px(663);
  background-image: url('../images/layer-success-bg.png');
}
.layer .container .buy-gloves{
  padding: px(50) px(100) 0;
  width:px(601);
  height:px(365);
  background-image: url('../images/layer-buy-gloves.png');
  .img{
    text-align: center;
  }
  .text{
    margin-top: px(20);
    font-size: px(45);
    color: #ce2525;
  }
}

.layer .btn-list {
  margin-top: px(40);
  width: 100%;
  text-align: center;
}
.layer .btn-list .btn{
  display: inline-block;
  width:px(160);
  height:px(140);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-size: 100% 100%;
  -moz-background-size: 100% 100%;
  -ms-background-size: 100% 100%;
  -o-background-size: 100% 100%;
}
.layer .btn-list .btn+.btn{
  margin-left: px(30);
}
.layer .btn-list .btn-back{
  background-image: url('../images/btn-back.png');
}
.layer .btn-list .btn-share{
  background-image: url('../images/btn-share.png');
}
.layer .btn-list .btn-refresh{
  background-image: url('../images/btn-refresh.png');
}
.layer .btn-list .btn-yes{
  background-image: url('../images/btn-yes.png');
}
.layer .btn-list .btn-no{
  background-image: url('../images/btn-no.png');
}

#imgbox {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

/*排行榜*/
.rank {
  .container {

  }
  .footer {
    .back-btn {
      background: url('../images/btn-rank-back.png') no-repeat;
    }
  }
}